﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Objects;
using System.Text;
using StockAnalysisModel;
using Wusong.Dal.EF;

namespace StockAnalysisiConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            ObjectContext dbContext = new StockAnalysisModel.StockAnalysisEntities();
            try
            {
                Wusong.Dal.Inf.IObjDAO<StockDailyInfo> dao = new EF4DAO<StockDailyInfo>(dbContext);
                var result = dao.LoadEntites(delegate(StockDailyInfo obj) { return true; });
                Console.Write(result.Count());
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
            }
            Console.Read();
        }
    }
}
